date_parse_from_format
Get information about a given date formatted according to the specified format
The date_parse_from_format() function returns an associative array containing the specified date information according to the specified format.
Return an associative array containing the specified date information according to the specified format:
<?php print_r ( date_parse_from_format ( "mmddyyyy" , "05122013" ) ) ; ?>
Try it yourself
date_parse_from_format ( format , date ) ;
| parameter | describe |
|---|---|
| format | Required. Specify format (the format accepted by date_create_from_format() ). |
| date | Required. Specifies the date, string value. |